package com.ykq.permission.controller.api;

import com.ykq.permission.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @program: qy151-education-parent
 * @description:
 * @author: 闫克起2
 * @create: 2022-08-29 11:10
 **/
@RestController
@RequestMapping("api/permission/permission")
public class ApiPermissionController {
    @Autowired
    private PermissionService permissionService;

    @GetMapping("selectPermissionByUserid")
    public List<String> selectPermissionByUserid(@RequestParam String userid){
       return permissionService.selectPermissionByUserid(userid);
    }
}
